Skip to content

fix(mcp): start the server with no dev-only packages - #7213

Merged
dan-petty merged 2 commits into
mainfrom
fix/7212-mcp-start-dev-only-sdk
Nov 25, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/7212-mcp-start-dev-only-sdk

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops mcp serve did not start in the mcp-server image: No module named 'grafana_foundation_sdk'. #7185 made k8s/catalog.py import the dashboard builder, whose SDK is in the dev group only, and the MCP server imports each command module.

The spec model of the service dashboards moves to grafana/service_specs.py, which imports no SDK. A new test imports each command module with the DEP004 packages of deptry blocked, so the next dev-only import fails CI.

Closes #7212

Change: openspec/changes/archive/2026-11-25-7212-mcp-start-dev-only-sdk/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/mcp Model Context Protocol tools, system resources, and prompts labels Nov 25, 2026
@dan-petty
dan-petty force-pushed the fix/7212-mcp-start-dev-only-sdk branch from 9e324d7 to 65ec4c9 Compare November 25, 2026 18:22
@dan-petty
dan-petty marked this pull request as ready for review November 25, 2026 18:30
@dan-petty
dan-petty merged commit 99b044a into main Nov 25, 2026
27 checks passed
@dan-petty
dan-petty deleted the fix/7212-mcp-start-dev-only-sdk branch November 25, 2026 18:30
dan-petty-release Bot added a commit that referenced this pull request Nov 25, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.221.3](v0.221.2...v0.221.3)
(2026-11-25)


### Bug Fixes

* **mcp:** start the server with no dev-only packages
([#7213](#7213))
([99b044a](99b044a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/mcp Model Context Protocol tools, system resources, and prompts type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(mcp): server start imports the dev-only Grafana SDK

1 participant